async function httpGetLaunches() {
  // 加载发射任务数据，按任务编号排序，然后返回 JSON 格式
  const response = await fetch(`${API_URL}/launches`);
  const fetchedLaunches = await response.json();
  return fetchedLaunches.sort((a, b) => {
  return a.flightNumber - b.flightNumber;
  });
 }
 async function httpAbortLaunch(id) {
  try {
  return await fetch(`${API_URL}/launches/${id}`, {
  method: "delete",
  });
  } catch(err) {
  console.log(err);
  return {
  ok: false,
  };
  }
 }
 